/****************************************************************************
 * Copyright (c) 2022 Qualcomm Technologies International, Ltd
****************************************************************************/
/**
 * \file      dls_kymera_util_ut.c
 * \ingroup   support_lib/kymera_utils
 *
 * kymera_utils support lib C file. <br>
 *
 */

/*****************************************************************************
Include Files
*/
#include "dls_kymera_util_if.h"
#include "cbops_c.h"

/*****************************************************************************
Public functions
*/
#if defined(UNIT_TEST_BUILD) || defined(CACHE_MIB_DEFAULT_2WAY) || defined(INSTALL_2WAY_CACHE)
/* This is a dummy function to keep the UT/SQIF builds happy.
* The actual implementation of this function is in
* dls_vol_ctrl_lib_asm.asm. This file shall not be
* exposed in an audio package
*/
bool sched_preemp_lock_get(unsigned index)
{
    return 1; /*dummy value for UT*/
}
bool sched_preemp_lock_release(unsigned index)
{
    return 1; /*dummy value for UT*/
}

bool ep_tod_stats_get(EP_TOD_STATS_INFO_LIST* ep_stats_info)
{
    bool retVal = 1;
    if (NULL != ep_stats_info)
    {
        ep_stats_info->num_elements = 0;
    }
    else
    {
        retVal = 0;
    }
    return retVal;
}

cbops_op* create_pcm_sink_monitor_op(unsigned nr_channels, unsigned* input_idx, unsigned cbops_flags)
{
    return ((cbops_op*)NULL);
}

tCbuffer* cbuffer_clone_create(tCbuffer *src)
{
    return ((tCbuffer*) NULL);
}

bool cbuffer_clone_sync(tCbuffer *src, tCbuffer *dst)
{
    return FALSE;
}

#endif /* UNIT_TEST_BUILD */
